package net.satiri.panaroekan.activity;

import net.satiri.panaroekan.R;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class SecondLevelTagList extends ListActivity {
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		String[] values = new String[] { "Mall", "Pom Bensin", "Restoran",
				"ATM BCA","ATM Mandiri","ATM",
				"Bank BCA","Bank Mandiri", "Bank", 
				"Hotel", "Taman","Musholla","Masjid",
				"Pintu Tol", "Bioskop","Rumah Sakit" };
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
				R.layout.tag_row ,R.id.CheckBoxTag, values);
		setListAdapter(adapter);
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		String item = (String) getListAdapter().getItem(position);
		Toast.makeText(this, item + " selected", Toast.LENGTH_LONG).show();
	}
}
